package org.im.service.message.bean;

public enum SenderType {

    // 普通用戶
    NORMAL_USER(1),

    // 系统
    SYSTEM(2)

    ;

    int type;

    private SenderType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public static SenderType valueOf(int type) {
        switch (type) {
            case 1:
                return NORMAL_USER;
            case 2:
                return SYSTEM;
            default:
                return NORMAL_USER;
        }
    }
}
